package com.hunter.sign.server.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hunter.common.base.BaseController;

@Controller
@RequestMapping(value="/test")
public class TestController extends BaseController{ 

	private Logger logger = LoggerFactory.getLogger(TestController.class);

	static int i = 0;
	
	/**
	 * 测试连接是否正常，没其他鸟用~~~~~
	 * @param request
	 * @param response
	 * @throws Exception 
	 */
	@RequestMapping(value = "/test")
	public void bidreq(HttpServletRequest request, HttpServletResponse response) throws Exception {
//		TAd tad = new TAd();
//		tad.setName("aaa");
//		tAdService.insert(tad);
		logger.error("====================消息：" + i++);
		logger.error("====================test：");
		outHttpString(response, i+"");
	}
	
}
